package lium.lbs.lbsim.jgchat.view;

import android.app.Dialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.media.Image;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.widget.*;
import cn.jpush.im.android.api.JMessageClient;
import cn.jpush.im.android.api.callback.IntegerCallback;
import cn.jpush.im.android.api.model.UserInfo;
import cn.jpush.im.api.BasicCallback;
import com.cjt2325.cameralibrary.util.LogUtil;
import com.google.gson.Gson;
import com.lmlibrary.Constants;
import lium.lbs.lbsim.R;
import lium.lbs.lbsim.jgchat.okhttp.BaseCallBack;
import lium.lbs.lbsim.jgchat.okhttp.BaseOkHttpClient;
import lium.lbs.lbsim.jgchat.utils.DialogCreator;
import lium.lbs.lbsim.jgchat.utils.ToastUtil;
import lium.lbs.lbsim.jgchat.utils.photochoose.SelectableRoundedImageView;
import lium.lbs.lbsim.jgchat.view.SlipButton;
import okhttp3.Call;

import java.io.IOException;

/**
 * Created by ${chenyn} on 2017/2/21.
 */

public class MyeView extends LinearLayout {
    private Context mContext;
    private RelativeLayout mExit;
    private int mWidth;
    private int mHeight;
    private RelativeLayout mRl_personal;
    public ImageView headImage;
    public TextView nickName;
    public TextView uniqueCode;
    public TextView tv_loginout;

    private LinearLayout change_signature;
    private LinearLayout my_wallet;
    private LinearLayout my_set;

    public MyeView(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.mContext = context;

    }


    public void initModule(float density, int width) {
        nickName = (TextView) findViewById(R.id.nickName);
        uniqueCode = (TextView) findViewById(R.id.uniqueCode);
        headImage = (ImageView) findViewById(R.id.headImage);
        tv_loginout = (TextView) findViewById(R.id.tv_loginout);
        change_signature = (LinearLayout) findViewById(R.id.change_signature);
        my_wallet = (LinearLayout) findViewById(R.id.my_wallet);
        my_set = (LinearLayout) findViewById(R.id.my_set);

        mWidth = width;
        mHeight = (int) (190 * density);


    }

    public void setListener(OnClickListener onClickListener) {
        tv_loginout.setOnClickListener(onClickListener);
        change_signature.setOnClickListener(onClickListener);
        my_wallet.setOnClickListener(onClickListener);
        my_set.setOnClickListener(onClickListener);
        headImage.setOnClickListener(onClickListener);
        nickName.setOnClickListener(onClickListener);
    }


}
